<%-- 
 @author : Sachith Dhanushka (sachith.dhanushka@gmail.com)
 @date : Jun 10, 2008 - 10:06:13 PM
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>:: NCSA KML Utility ::</title></head>
<body>

<h2 align="center">NCSA KML Utility</h2>

<table align="center" border>
<tr>

    <td>
        <br/><br/>

        <h3>Shape Files to KML 2.2</h3>

        <!--This will handle file uploads-->
        <form action="ncsaKmlUtility.jsp?action=ShpFile2kml" enctype="multipart/form-data" method="post">

            <p>Please provide your shape file archive </p>

            <table>
                <tr>
                    <td>
                        <input type="radio" name="source" value="upload" checked="true">Upload File
                    </td>
                    <td>
                        <input type="file" name="datafile" size="40">
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="radio" name="source" value="url">File URL
                    </td>
                    <td>
                        <input type="text" name="url" size="40">
                    </td>
                </tr>
            </table>


            <p>
                <input type="radio" name="output" value="gearth" disabled="true"> Show in Google Earth Plugin<br>
                <input type="radio" name="output" value="download" checked> Download KML File<br>
            </p>

            <div>
                <input type="submit" value="Send">
            </div>
        </form>
    </td>
    <!--<td>-->
    <!--This will handle URLs-->
    <!--<form action="ncsaKmlUtility.jsp?action=ShpLink2kml" method="post">-->


    <!--<p>Please specify the web location of your shape file archive<br>-->
    <!---->
    <!--</p>-->

    <!--<p>-->
    <!--<input type="radio" name="output" value="gearth" disabled="true"> Show in Google Earth Plugin<br>-->
    <!--<input type="radio" name="output" value="download" checked> Download KML File<br>-->
    <!--</p>-->

    <!--<div>-->
    <!--<input type="submit" value="Send">-->
    <!--</div>-->
    <!--</form>-->

    <!--</td>-->

    <td>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </td>
    <td>
        <h3>WaterOneFlow Unit Values to KML 2.2</h3>


        <form action="ncsaKmlUtility.jsp?action=WOF2KML" method="post">

            <p>Please specify the site ID (Eg: NWIS:05531300)<br>
                <input type="text" name="siteID" size="40">
            </p>

            <p>
                <input type="radio" name="output" value="gearth" disabled="true"> Show in Google Earth Plugin<br>
                <input type="radio" name="output" value="download" checked> Download KML File<br>
            </p>

            <div>
                <input type="submit" value="Send">
            </div>
        </form>
    </td>
</tr>

<tr>

    <td>

        <h3>KML to RDF Conversion</h3>

        <!--This will handle file uploads-->
        <form action="ncsaKmlUtility.jsp?action=KML2RDF" enctype="multipart/form-data" method="post">

            <p>Please provide your KML File </p>

            <table>
                <tr>
                    <td>
                        <input type="radio" name="source" value="upload" checked="true"> Upload File
                    </td>
                    <td>
                        <input type="file" name="datafile" size="40">
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="radio" name="source" value="url"> File URL
                    </td>
                    <td>
                        <input type="text" name="url" size="40">
                    </td>
                </tr>
            </table>

            <div>
                <input type="submit" value="Send">
            </div>
        </form>
    </td>

    <td>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </td>

    <td>
        <h3>RDF to KML Conversion</h3>

        <!--This will handle file uploads-->
        <form action="ncsaKmlUtility.jsp?action=RDF2KML" enctype="multipart/form-data" method="post">

            <p>Please provide your RDF File </p>

            <table>
                <tr>
                    <td>
                        <input type="radio" name="source" value="upload" checked="true"> Upload File
                    </td>
                    <td>
                        <input type="file" name="datafile" size="40">
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="radio" name="source" value="url"> File URL
                    </td>
                    <td>
                        <input type="text" name="url" size="40">
                    </td>
                </tr>
            </table>

            <div>
                <input type="submit" value="Send">
            </div>
        </form>
    </td>

</tr>

<tr>

    <td>

        <h3>GeoTIFF to KML Conversion</h3>

        <!--This will handle file uploads-->
        <form action="ncsaKmlUtility.jsp?action=GT2KML" enctype="multipart/form-data" method="post">

            <p>Please provide your GeoTiff File </p>

            <table>
                <tr>
                    <td>
                        <input type="radio" name="source" value="upload" checked="true"> Upload File
                    </td>
                    <td>
                        <input type="file" name="datafile" size="40">
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="radio" name="source" value="url"> File URL
                    </td>
                    <td>
                        <input type="text" name="url" size="40">
                    </td>
                </tr>
            </table>

            <div>
                <input type="submit" value="Send">
            </div>
        </form>
    </td>

    <td>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </td>

    <td>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </td>

</tr>

</table>

</body>
</html>